<?php
  require('GoogleMapAPI.class.php');
  require('RadiusCheck.php');
echo "u r in";
    $map = new GoogleMapAPI('map');
    // setup database for geocode caching
 //   $map->setDSN('mysql://root:""@localhost/GEOCODES');
    // enter YOUR Google Map Key
   $DD= $map->setAPIKey('ABQIAAAAwbwAonMdkRlo6b6J_KBi7RTlALOyp2CbwxfXPsAbt4GlSe0_kRSESRxmWAg19B-76Qt_lT2NvnxRww');
	//var iconBlue = new GIcon(); 
    $iconImage = 'http://localhost/google_map/map_blue.png';
     $map->setHeight('200px');
    $map->setWidth('250px');
    $map->setMarkerIcon($iconImage);
	$address = "621 N 48th St # 6 Lincoln NE 68502";
	$_geocode = $map->getGeocode($address) ;
	$radius = new RadiusCheck($_geocode['lon'],$_geocode['lat'],15);
	 $maxlat = $radius->MaxLatitude();
	 $minlat = $radius->MinLatitude();
	 $maxlon = $radius->MaxLongitude();
	 $minlon = $radius->MinLongitude();
    // create some map markers
   // $map->addMarkerByAddress('411028 pune ','Pune','<b>Pune</b>');
   $map->addMarkerByAddress('HMAS CRESWELL','HMAS CRESWELL','<b>HMAS CRESWELL</b>');

  //  $map->addMarkerByAddress('826 P St Lincoln NE 68502','Old Chicago','<b>Old Chicago</b>');
    //$map->addMarkerByAddress('3457 Holdrege St Lincoln NE 68502',"Valentino's","<b>Valentino's</b>");
	
    $google_map_header=$map->getHeaderJS();
    $google_map_js=$map->getMapJS();
    $google_map_sidebar=$map->getSidebar();
    $google_map=$map->getMap();
    
 $onload = $map->getOnLoad();

    ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">


    <html >
    <head>
    <?php echo $google_map_header; ?>
    <?php echo $google_map_js; ?>
     

    <!-- necessary for google maps polyline drawing in IE -->
  <style type="text/css">
      v\:* {ldelim}
        behavior:url(#default#VML);
     {rdelim} 
    </style>
    </head>
   
    <table width="200" border="1" cellpadding="0" cellspacing="0">
      <tr>
        <td width="10%"><?php echo $google_map; ?></td>
		<?php echo $onload; ?>
             <td><?php echo $google_map_sidebar; ?></td>
      </tr>
     <tr> 
         <td>
         </td>
      </tr>



<tr>
<td colspan="2">

<iframe src="http://maps.google.com/staticmap?center=19.736976,75.713825&markers=19.751480,75.713888,red&zoom=5&size=200x200&key=ABQIAAAAwbwAonMdkRlo6b6J_KBi7RTlALOyp2CbwxfXPsAbt4GlSe0_kRSESRxmWAg19B-76Qt_lT2NvnxRww"></iframe>

</td>
</tr>

    </table>
   
    </html>


   

